﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Reflection;
using System.IO;

namespace Default
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Show_Hello(object sender, EventArgs e)
        {
            this.display.Text = "Hello ASP.NET";
        }

        protected void Show_Running_Dir(object sender, EventArgs e)
        {
            string codeBase = Assembly.GetExecutingAssembly().CodeBase;
            UriBuilder uri = new UriBuilder(codeBase);
            string path = Uri.UnescapeDataString(uri.Path);


            this.display.Text = path;
        }
       
    }
}
